package org.hi.base.service.impl;

import java.util.List;

import org.hi.framework.paging.PageInfo;
import org.hi.base.model.Country;
import org.hi.framework.service.impl.ManagerImpl;
import org.hi.base.service.CountryManager;

public class CountryManagerImpl extends ManagerImpl implements CountryManager{
    
    protected void preSaveObject(Object obj) {
        super.preSaveObject(obj);

    }

    protected void postSaveObject(Object obj) {
        super.postSaveObject(obj);

    }

    protected void preRemoveObject(Object obj) {
        super.preRemoveObject(obj);
        
    }

    protected void postRemoveObject(Object obj) {
        super.postRemoveObject(obj);
        
    }
    
    public void saveCountry(Country country){
    	saveObject(country);
    
    }

    public void removeCountryById(Integer id){
    	removeObjectById(id);
    	
    }

    public Country getCountryById(Integer id){
   		return (Country) getObjectById(id);
    }

    public List<Country> getCountryList(PageInfo pageInfo){
    	return super.getList(pageInfo);
    }

    public void saveSecurityCountry(Country country){
    	saveObject(country);
    
    }

    public void removeSecurityCountryById(Integer id){
    	removeObjectById(id);
    	
    }

    public Country getSecurityCountryById(Integer id){
   		return (Country) getObjectById(id);
    }

    public List<Country> getSecurityCountryList(PageInfo pageInfo){
    	return super.getList(pageInfo);
    }    
}
